﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Pagers
{
    public class PagerSort
    {
        public PagerSort()
        {
            this.OrderBy = OrderByType.Desc;
        }

        private string _field;
        private string[] _fieldArray;
        public string Field
        {
            get
            {
                return _field;
            }
            set
            {
                _field = value;
                _fieldArray = _field.SplitRemoveEmpty(".");
            }
        }

        public string[] FieldSplitedArray { get { return _fieldArray; } }

        public string OrderBy { get; set; }
    }
}
